package ua.org.extjsbuilder.parser.runtime.data;

import ua.org.extjsbuilder.parser.JSObject;

public enum JSConstants implements JSObject {
	UNDEFINED, NULL;
	
	public boolean match(CharSequence keyword){
		int len = name().length();
		if(len!=keyword.length())return false;
		String name = name().toLowerCase();
		
		for(int i=0;i<len;i++){
			if(name.charAt(i)!=keyword.charAt(i)){
				return false;
			}
		}
		return true;
	}
}
